<?php

namespace App\Models;


class FangAttr extends Base
{


    public function setIconAttribute($value)
    {
        $this->attributes['icon'] = empty($value) ? '' : $value;
    }

    public function setFieldNameAttribute($value)
    {
        $this->attributes['field_name'] = empty($value) ? '' : $value;
    }

    public function getFangAttrAll()
    {
        $data = self::all();
        $result = $this->treeLevel($data);
        return $result;
    }
}
